<?php

class DefaultController extends Controller {

    public $layout = '//layouts/column2';

    public function actionIndex() {
        $this->render('index');
    }
public function actionMenu($cedula=NULL) {
        $this->render('index_1', array(
            'model' => $cedula,
        ));
    }
    public function actionNotas($id = NULL) {
        $model = Notas::model();
        $estudiante = Estudiante::model()->find(array('condition' => "cedula = $id"));
        $model->estudiante_id = $estudiante->id;
        $this->render('_notas', array(
            'model' => $model,
            'estudiante' => $estudiante,
        ));
    }

    public function actionContable($id = NULL) {
        $model = Contable::model();
        $estudiante = Estudiante::model()->find(array('condition' => "cedula = $id"));
        $model->estudiante_id = $estudiante->id;
        $this->render('_contable', array(
            'model' => $model,
            'estudiante' => $estudiante,
        ));
    }

}